import Relay from "react-relay";

export default class RelevanceTraffickerMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { relevanceTrafficker }`;
    }

    getVariables() {
        return {
            argsInput: {
                oid:this.props.oid,
                partA:this.props.partA,
                partAName:this.props.partAName,
                partAAddress:this.props.partAAddress,
                partAUserId:this.props.partAUserId,
                partAUserName:this.props.partAUserName,
                partAPhone:this.props.partAPhone,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on relevanceTraffickerPayload {
            relevanceTrafficker {
                errorCode
                orders{
                    oid
                    status
                    orderType
                   
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on relevanceTraffickerPayload {
                relevanceTrafficker {
                    errorCode
                    orders{
                        oid
                        status
                        orderType
                        
                    }
                }
             }
            `]
        }];
    }

}
